package diaosidadui.homework;

public class Test02 {
    public static void main(String[] args) {
        int a, b, c;
        a = 10;
        b = 20;
        c = 35;

        System.out.println(getMax(a, b, c));
    }
//  求三个数的最大值
    public static int getMax(int a, int b, int c) {
        return a > b && a > c ? a : (b > c ? b : c);
    }
}
